package com.xtourms.server.db;

// Generated 2011-4-17 16:04:01 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Hotel generated by hbm2java
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "hotel", catalog = "xtourms")
public class Hotel implements java.io.Serializable {

	private Integer hotelId;
	private String hotelName;
	private String hotelLv;
	private String hotelAdd;
	private String hotelDes;
	private String hotelManagerName;
	private String hotelManagerTel;
	private String hotelLinkmanName;
	private String hotelLinkmanQq;
	private String hotelLinkmanTel;
	private int hotelCity;
	private String hotelFax;
	private String hotelTel;
	private String hotelSymbiosis;
	private String hotelBankHolder;
	private String hotelBankAdd;
	private String hotelBankAccounts;
	private String hotelPayMode;
	private int hotelUnpaymoney;
	private int hotelUnpaydays;
	private Date hotelBeginDate;
	private Date hotelEndDate;
	private int lastmodifyWorker;
	private Date lastmodifyTime;
	private Set<Room> rooms = new HashSet<Room>(0);

	public Hotel() {
	}

	public Hotel(String hotelName, String hotelLv, String hotelAdd,
			String hotelDes, String hotelManagerName, String hotelManagerTel,
			String hotelLinkmanName, String hotelLinkmanQq,
			String hotelLinkmanTel, int hotelCity, String hotelFax,
			String hotelTel, String hotelSymbiosis, String hotelBankHolder,
			String hotelBankAdd, String hotelBankAccounts, String hotelPayMode,
			int hotelUnpaymoney, int hotelUnpaydays, Date hotelBeginDate,
			Date hotelEndDate, int lastmodifyWorker, Date lastmodifyTime) {
		this.hotelName = hotelName;
		this.hotelLv = hotelLv;
		this.hotelAdd = hotelAdd;
		this.hotelDes = hotelDes;
		this.hotelManagerName = hotelManagerName;
		this.hotelManagerTel = hotelManagerTel;
		this.hotelLinkmanName = hotelLinkmanName;
		this.hotelLinkmanQq = hotelLinkmanQq;
		this.hotelLinkmanTel = hotelLinkmanTel;
		this.hotelCity = hotelCity;
		this.hotelFax = hotelFax;
		this.hotelTel = hotelTel;
		this.hotelSymbiosis = hotelSymbiosis;
		this.hotelBankHolder = hotelBankHolder;
		this.hotelBankAdd = hotelBankAdd;
		this.hotelBankAccounts = hotelBankAccounts;
		this.hotelPayMode = hotelPayMode;
		this.hotelUnpaymoney = hotelUnpaymoney;
		this.hotelUnpaydays = hotelUnpaydays;
		this.hotelBeginDate = hotelBeginDate;
		this.hotelEndDate = hotelEndDate;
		this.lastmodifyWorker = lastmodifyWorker;
		this.lastmodifyTime = lastmodifyTime;
	}

	public Hotel(String hotelName, String hotelLv, String hotelAdd,
			String hotelDes, String hotelManagerName, String hotelManagerTel,
			String hotelLinkmanName, String hotelLinkmanQq,
			String hotelLinkmanTel, int hotelCity, String hotelFax,
			String hotelTel, String hotelSymbiosis, String hotelBankHolder,
			String hotelBankAdd, String hotelBankAccounts, String hotelPayMode,
			int hotelUnpaymoney, int hotelUnpaydays, Date hotelBeginDate,
			Date hotelEndDate, int lastmodifyWorker, Date lastmodifyTime,
			Set<Room> rooms) {
		this.hotelName = hotelName;
		this.hotelLv = hotelLv;
		this.hotelAdd = hotelAdd;
		this.hotelDes = hotelDes;
		this.hotelManagerName = hotelManagerName;
		this.hotelManagerTel = hotelManagerTel;
		this.hotelLinkmanName = hotelLinkmanName;
		this.hotelLinkmanQq = hotelLinkmanQq;
		this.hotelLinkmanTel = hotelLinkmanTel;
		this.hotelCity = hotelCity;
		this.hotelFax = hotelFax;
		this.hotelTel = hotelTel;
		this.hotelSymbiosis = hotelSymbiosis;
		this.hotelBankHolder = hotelBankHolder;
		this.hotelBankAdd = hotelBankAdd;
		this.hotelBankAccounts = hotelBankAccounts;
		this.hotelPayMode = hotelPayMode;
		this.hotelUnpaymoney = hotelUnpaymoney;
		this.hotelUnpaydays = hotelUnpaydays;
		this.hotelBeginDate = hotelBeginDate;
		this.hotelEndDate = hotelEndDate;
		this.lastmodifyWorker = lastmodifyWorker;
		this.lastmodifyTime = lastmodifyTime;
		this.rooms = rooms;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "HOTEL_ID", unique = true, nullable = false)
	public Integer getHotelId() {
		return this.hotelId;
	}

	public void setHotelId(Integer hotelId) {
		this.hotelId = hotelId;
	}

	@Column(name = "HOTEL_NAME", nullable = false, length = 60)
	public String getHotelName() {
		return this.hotelName;
	}

	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}

	@Column(name = "HOTEL_LV", nullable = false, length = 4)
	public String getHotelLv() {
		return this.hotelLv;
	}

	public void setHotelLv(String hotelLv) {
		this.hotelLv = hotelLv;
	}

	@Column(name = "HOTEL_ADD", nullable = false, length = 65535)
	public String getHotelAdd() {
		return this.hotelAdd;
	}

	public void setHotelAdd(String hotelAdd) {
		this.hotelAdd = hotelAdd;
	}

	@Column(name = "HOTEL_DES", nullable = false, length = 65535)
	public String getHotelDes() {
		return this.hotelDes;
	}

	public void setHotelDes(String hotelDes) {
		this.hotelDes = hotelDes;
	}

	@Column(name = "HOTEL_MANAGER_NAME", nullable = false, length = 15)
	public String getHotelManagerName() {
		return this.hotelManagerName;
	}

	public void setHotelManagerName(String hotelManagerName) {
		this.hotelManagerName = hotelManagerName;
	}

	@Column(name = "HOTEL_MANAGER_TEL", nullable = false, length = 11)
	public String getHotelManagerTel() {
		return this.hotelManagerTel;
	}

	public void setHotelManagerTel(String hotelManagerTel) {
		this.hotelManagerTel = hotelManagerTel;
	}

	@Column(name = "HOTEL_LINKMAN_NAME", nullable = false, length = 15)
	public String getHotelLinkmanName() {
		return this.hotelLinkmanName;
	}

	public void setHotelLinkmanName(String hotelLinkmanName) {
		this.hotelLinkmanName = hotelLinkmanName;
	}

	@Column(name = "HOTEL_LINKMAN_QQ", nullable = false, length = 20)
	public String getHotelLinkmanQq() {
		return this.hotelLinkmanQq;
	}

	public void setHotelLinkmanQq(String hotelLinkmanQq) {
		this.hotelLinkmanQq = hotelLinkmanQq;
	}

	@Column(name = "HOTEL_LINKMAN_TEL", nullable = false, length = 11)
	public String getHotelLinkmanTel() {
		return this.hotelLinkmanTel;
	}

	public void setHotelLinkmanTel(String hotelLinkmanTel) {
		this.hotelLinkmanTel = hotelLinkmanTel;
	}

	@Column(name = "HOTEL_CITY", nullable = false)
	public int getHotelCity() {
		return this.hotelCity;
	}

	public void setHotelCity(int hotelCity) {
		this.hotelCity = hotelCity;
	}

	@Column(name = "HOTEL_FAX", nullable = false, length = 20)
	public String getHotelFax() {
		return this.hotelFax;
	}

	public void setHotelFax(String hotelFax) {
		this.hotelFax = hotelFax;
	}

	@Column(name = "HOTEL_TEL", nullable = false, length = 20)
	public String getHotelTel() {
		return this.hotelTel;
	}

	public void setHotelTel(String hotelTel) {
		this.hotelTel = hotelTel;
	}

	@Column(name = "HOTEL_SYMBIOSIS", nullable = false, length = 3)
	public String getHotelSymbiosis() {
		return this.hotelSymbiosis;
	}

	public void setHotelSymbiosis(String hotelSymbiosis) {
		this.hotelSymbiosis = hotelSymbiosis;
	}

	@Column(name = "HOTEL_BANK_HOLDER", nullable = false, length = 60)
	public String getHotelBankHolder() {
		return this.hotelBankHolder;
	}

	public void setHotelBankHolder(String hotelBankHolder) {
		this.hotelBankHolder = hotelBankHolder;
	}

	@Column(name = "HOTEL_BANK_ADD", nullable = false, length = 65535)
	public String getHotelBankAdd() {
		return this.hotelBankAdd;
	}

	public void setHotelBankAdd(String hotelBankAdd) {
		this.hotelBankAdd = hotelBankAdd;
	}

	@Column(name = "HOTEL_BANK_ACCOUNTS", nullable = false, length = 20)
	public String getHotelBankAccounts() {
		return this.hotelBankAccounts;
	}

	public void setHotelBankAccounts(String hotelBankAccounts) {
		this.hotelBankAccounts = hotelBankAccounts;
	}

	@Column(name = "HOTEL_PAY_MODE", nullable = false, length = 3)
	public String getHotelPayMode() {
		return this.hotelPayMode;
	}

	public void setHotelPayMode(String hotelPayMode) {
		this.hotelPayMode = hotelPayMode;
	}

	@Column(name = "HOTEL_UNPAYMONEY", nullable = false)
	public int getHotelUnpaymoney() {
		return this.hotelUnpaymoney;
	}

	public void setHotelUnpaymoney(int hotelUnpaymoney) {
		this.hotelUnpaymoney = hotelUnpaymoney;
	}

	@Column(name = "HOTEL_UNPAYDAYS", nullable = false)
	public int getHotelUnpaydays() {
		return this.hotelUnpaydays;
	}

	public void setHotelUnpaydays(int hotelUnpaydays) {
		this.hotelUnpaydays = hotelUnpaydays;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "HOTEL_BEGIN_DATE", nullable = false, length = 10)
	public Date getHotelBeginDate() {
		return this.hotelBeginDate;
	}

	public void setHotelBeginDate(Date hotelBeginDate) {
		this.hotelBeginDate = hotelBeginDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "HOTEL_END_DATE", nullable = false, length = 10)
	public Date getHotelEndDate() {
		return this.hotelEndDate;
	}

	public void setHotelEndDate(Date hotelEndDate) {
		this.hotelEndDate = hotelEndDate;
	}

	@Column(name = "LASTMODIFY_WORKER", nullable = false)
	public int getLastmodifyWorker() {
		return this.lastmodifyWorker;
	}

	public void setLastmodifyWorker(int lastmodifyWorker) {
		this.lastmodifyWorker = lastmodifyWorker;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LASTMODIFY_TIME", length = 19)
	public Date getLastmodifyTime() {
		return this.lastmodifyTime;
	}

	public void setLastmodifyTime(Date lastmodifyTime) {
		this.lastmodifyTime = lastmodifyTime;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "hotel")
	public Set<Room> getRooms() {
		return this.rooms;
	}

	public void setRooms(Set<Room> rooms) {
		this.rooms = rooms;
	}

}
